home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1996
/
ARCHIVE_96.iso
/
discs
/
utilities
/
utility_02
/
converters
/
!CGM->Draw
/
!Help
next >
Wrap
Text File
|
1995-02-19
|
13KB
|
372 lines
CAREWARE
############
!CGM->Draw Version 2.9 Readme.
Last updated
~~~~~~~~~~~~
Application : 19th Feb 1995
Documentation : 19th Feb 1995
THIS PROGRAM IS CAREWARE IT IS NOT PUBLIC DOMAIN
================================================
The following have written permission to reproduce this software on
their respective Careware disks :-
Norwich Computer Services : Careware Disks
Alex Bar (Furth Germany ): German Careware Disks
They will also be supplied with updates.
The Author will also upload it to Careware sections on Arcade and NCS bbs.
From which it maybe downloaded.
It may NOT be uploaded by anyone other than the Author.
It may NOT be reproduced by any other means ( other than above )
without written consent of the author.
Arcade and NCS do NOT have authority to authorise copying by any means other than
above.
Acknowledgements
================
Thanks to the following for the supplying various sample CGM files
Marc Lawrence, John Potter, Steve Hurst, Steve Ellacott, Barney Hamilton
Frank K Carver, Andrew Pinder, Adrian Look.
!CGM->Draw
==========
!CGM->Draw is a Utility for converting CGM Computer Graphics Metafiles
to Acorn Draw files.
CGM Computer Graphics files can be produced by a number of PC graphics
packages such as Freelance Plus and Harvard Graphics.
It has been tested with Freelance V2.01, V3.01 and with a few sample
files from :-
Harvard Graphics.
CorelDraw
Installation
============
The Cgmdraw arc file should have been restored to a directory named
!CGM->Draw. Which should contain the following files :-
!Run : !CGM->Draw Startup file.
!Sprites : !CGM->Draw Application Sprites
Cgm-draw : !CGM->Draw Application.
~~config : Configuration file for CGM->Draw.
!Help : This file.
Templates : Templates file for this application
!Palette : Palette equivalent to default colours if CGM file
does not contain a colour Table or direct colours.
Changing this file will not have any effect on the
application.
Tailoring.
=========
The !run file should be altered to suite your requirements :-
1) The Shared C Library should be loaded as appropriate for
your setup. The supplied !run file assumes that the C
shared library module is in !system.modules.
2) cgmdraw$dir : Path to find config,template,!Palette file
3) !CGM->Draw has been tested with a wimpslot size of 160k, lower
values maybe possible. The buffer used for the conversion
processing is claimed from the next slot. The space is return
immediately after the conversion, so you should not be able to
see the change. The next slot size must be large enough to
hold the complete CGM file.
If !CGM->Draw prompts that it does not have enough memory to process,
then !CGM->Draw must be restarted, having made provision that
the next slot is large enough.
Operation.
==========
Clicking on the !CGM->Draw icon will install it on the icon bar.
Dragging cgm files to this icon will prompt for a draw file name
and conversion will take place.
Direct Conversions/Wimp Pipes
=============================
If you are converting a number of files then you might like to use the
wimp pipes facility. Clicking on !CGM->Draw icon ( or via normal menus )
will bring up an options window.
If the draw file icon is then dragged to a directory or application then a
a pipe is set up to that directory or application. Dragging a file or set
of files to the iconbar icon, will no longer prompt for a target file name but
automatically send the file to the relevant application or directory.
For the above to work correctly with an application, the application must
support the data transfer protocol to at least wimp$scrap file level.
Specifically the application must support
1) The Dataload message.
2) The Datasave message.
3) The application must allow for the fact that both the source and destination
maybe an application and hence both source and destination could be the
<wimp$scrap> file. This is a consequence of the protocol and is often a
stumbling block for conversion type programs.
Unfortunately not all applications conform to the above. This applies to
so called professionally written software as well as Épublic domainæ.
The application has successfully been tested with the following
!Draw 0.44
!Draw 1/2 1.00
!DrwCGM 0.9b
!PCDir 1.0e
!Impression 2.03
!Draw->CGM BetaTest
!DrawPlus 2.00
A number of other options are made through the options window.
1) warning message prompts may be suppressed.
2) warning messages may be directed to disk . ( In the !Drw->Cgm directory ).
3) A trace file may be directed to disk. ( In the !Drw->Cgm directory ).
Metafile Translation
====================
The Graphics Metafile support is fairly comprehensive, but not complete.
A number of functions are not supportable by draw. e,g. pattern fills
text at an angle. etc.
Some other functions have not been implemented. This is due to the fact
that I cannot easily generate test cases for all functions. The
functions supported should cater for Freelance and Harvard Graphics
produced files.
Metafile orders greater than 32k are not yet supported.
One exception is cell arrays greater than 32k.
If you come across a missing function then you will receive a relevant
popup window. I am keen to obtain test cases for as yet
unsupported metafile elements in order to improve the program.
Similarly if you have some files that will not convert properly,
then again I would be very interested. Please contact me through
either of the two Bulletin Boards Arcade bbs, NCS bbs.
Restrictions
============
Max colour index is limited currently to 1024, this restriction can easily be
lifted upon request.
Draw only supports a background colour of white ( colour 0 ). Some lines,areas,shapes
extra ,may be white on a non-white background. These therefore need to be edited
when in draw. i.e. if you get a blank picture try select all and change line style to
colour black.
Risc OS v2/v3 Draw does not support patterned fills.
Multiple CGM Pictures in one file are only supported if the pictures are on the
same page.
Polygon set edge visibility is not 100% supported, to be improved in later release.
Config File.
===========
The config file controls font translation.
The first entry is the number of font entries.
The appropriate number of font entries then follow.
A font entry consistæs of :-
An Acorn Font name.
The cgm font number + 1 ( Integer ). NOT zero !!!!!
height adjustment multiplier ( Integer ).
height adjustment divisor ( Integer ).
Height adjustment
The height read from the CGM file is adjusted as follows
( height * multiplier ) / divisor.
Following the fonts is marker controls
Font number for markers (integer)
Characters in Marker font (string upto 16 characters)
The CGM standard states that
marker 1 : Is a dot
marker 2 : plus
marker 3 : asterisk
marker 4 : circle
marker 5 : cross
negative values are private and are mapped to 6 by CGM->Draw
i.e. marker -1 = offset 6 in string,
marker -2 = offset 7 in string
etc.
Copyright, Terms of Use & Contributions
=======================================
This software carries no warranty, either express or implied.
I can not guarantee that it is free of bugs or give any warranty
about itæs suitability for use.
The status of !CGM->Draw is Careware.
Permission is granted to Norwich Computer Services to reproduce !CGM->Draw on Careware disks.
The software will be uploaded to Careware sections on Arcade and Archive Bulletin Boards,
it may only be uploaded by the author. It may not be uploaded by anybody else or
to any other board.
This software may NOT be distributed by public domain libraries.
If you did not obtain the software from a Careware disk or by subscription to one of the
Bulletin Board Careware sections. ( i.e. You obtained it from a friend who does, say. )
Then please send a contribution to either
Heatherley Cheshire Home
Effingham Lane,
Copthorne,
Sussex.
RH10 3HS.
Registered Charity Number : 218186
The software may not otherwise be copied or distributed without
the Authors written permission.
Copyright remains soley the authors. (C) Keith Sloan
[ User: Keith Sloan on ArcadeBBS : London ]
Fidonet : Keith Sloan @ 2:254/7.0
Internet : keiths@uk.co.compulink.cix
[ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
No comms access at present.
Following house move , serial port appears to
be broken
] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Version History
---------------
1.0 First version. ( October 1990 )
1.1 Number of bugs fixed to do with arcs of circles ( mostly filled ).
Support added for cell arrays and 3 point circles.
These are both untested as I do not have access to any software that
uses these CGM elements. If you find CGM files which case Cell array
warnings or arc 3pt circle warnings, I would be very interested in
obtain such files for future testing.
1.2 Tested with CoralDraw
Default vdc precision set.
Colour table with more than one entry.
iconbar sprite changed from mode 86 to 12
winding set to odd-even.
1.3 Add support for cell arrays.
1.4 Add support for Polygon set.
1.5 Button click on wimp pipe name changes text alignment.
to allow for long path names.
1.6 Translation colour table fully initialised in case CGM
file forgets to include background colour in colour table.
1.7 Fixes for CGM file of dubious origin.
1.8 Max colour index increased from 256 to 1024.
Better file handling.
Various other small fixes.
1.9 Perimeter elements corrected from draft to full standard
2.0 & 2.1 Fixes for WPCorp created files, should no longer abort on unknown element
Character set elements added. ( Default max colour values fixed in 2.1 )
2.2 Fixes for WPCorp created files, ( uses a max colour index of 0 then goes
ahead and uses direct colours [strange] )
2.3 Fix for filled ellipse producing closed figure with incorrect length.
2.4 Nov 1991
Support for edge visibility element
Negative VDC shifted to zero.
Fix for arc of ellipse and arc ellipse close
Allow for polylines with only one point ( Looks like product of CorelTrace )
2.5 Apr 1992
Support for restricted text
Improved handling of multiple segments ( remove bug for gt 2 )
Scaled width
Multiple pictures on same page.
2.6 Jun 1992
Fix for Polgon set with greater than one closure.
2.7 Jan 1995
Support Text at an Angle
Support for Markers
2.8 Jan 1995
( Whoops some more fixes in the evening )
Fix : Colour precision used instead of colour index precision
Fix : ellipse when offsets are non-zero
2.9 Feb 1995
Default colour 0 to white ( some PC CGM have different defaults )
Known Problems
==============
Bug in Ellipses at an angle.
Really want to restructure code as per !WMF->Draw and !Met->Draw
for ellipses. So need to do some recoding and a lot of re-testing for
ellipses at angles etc